import fetch from 'common/src/utils/fetch'
let apiPrefix = '/api/studentservice/';
// 教务员代申请列表
export function insteadApplyList (data = {}) {
    return fetch({
        url: apiPrefix + 'apply/insteadApplyList',
        method: 'post',
        headers: {
            'Content-Type': 'application/json'
        },
        data
    });
}
/**
 *  代申请列表删除
 * @param {*}   data {id:id,studentId:studentId,status:status}
 */
export function deleteType(data) {
  return fetch({
    url: apiPrefix+'apply/deleteApply',
    method: 'Delete',
    data:data
  })
}
/**
 * 撤销异动申请
 * @param {*} data {studentId:学生ID}
 */
export function cancelApply(data={}) {
  return fetch({
    url: apiPrefix+'apply/cancelApply',
    method: 'post',
    data
  })
}

